<?php
include_once('common.inc.php');

require_once(__ROOT__.'model/permission.class.php');
$permission = new permissionModel;
/**
  * permission model test
  *
$data = array( 'name' => 'Home','user_group'=>1,'task'=>1);
$rs=$user->add_permission($data);
if( $rs ){
	echo 'successs';
}else{
	echo $user->get_error();
}
*/
$rs = $permission->get_permission_by_id(1);
dump($rs);
